DX11 SET SPRITE CAMERA MASK

This function can be used to set a sprite to only be drawn by certain cameras.
The mask is a 32-bit value; each bit represents a camera id that the sprite will be drawn by. This works identical to the sync mask for objects.
Use DX11 GET CAMERA ID to get the ID of a certain camera (the main screen camera always has an ID of 0, so setting the mask to 1
will only draw the sprite to the main camera (because 2 ^ 0 == 1)).
Take note that any camera besides the main camera must also be manually set to allow drawing sprites (using the DX11 SET CAMERA ENABLE SPRITES function).

  Syntax
DX11 SET SPRITE CAMERA MASK sprite, mask
  Parameters
sprite
Dword
The sprite to set the camera mask of.
mask
Dword
The camera mask to set for the specified sprite.

  Returns

This function does not return a value.

  See also

SPRITE Functions Menu
DX11 Function Categories